﻿using System.Windows;

namespace LuminaDesk.Core.Views.Controls;

public static class TemplateElement
{
	public static Visibility GetVisibility(DependencyObject obj)
	{
		return (Visibility)obj.GetValue(VisibilityProperty);
	}
	public static void SetVisibility(DependencyObject obj, Visibility value)
	{
		obj.SetValue(VisibilityProperty, value);
	}
	public static readonly DependencyProperty VisibilityProperty =
		DependencyProperty.RegisterAttached(
			"Visibility",
			typeof(Visibility),
			typeof(TemplateElement),
			new PropertyMetadata(Visibility.Collapsed));
}